<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
	const p = new Promise((resolve, reject) => {
		reject(100);
	})
    p.then(undefined,reason=>{
		console.log("失败回调",reason);
    })
    p.catch(reason=>{
		console.log("失败回调catch",reason);
    })
</script>
</html>